package com.jiyi.activity.observer;

import android.app.Dialog;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.swift.base.ActivityBase;
import com.swift.maintenance.R;
import com.swift.maintenance.utils.FlowWordUtil;

import java.util.concurrent.TimeUnit;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ObserverActivity extends ActivityBase {

    private final String TAG = ObserverActivity.class.getName();

    @BindView(R.id.tvWord)
    TextView tvWord;

    String word = "叠几行落叶随风的小字，停泊指尖，于心的宁静中，藏一掬思念，轻轻落凡尘。这点滴的心思，汇聚在无声的雨里，捎去遥远的梦想，寻思着，这花香烟火，一沓沓，恰好可以，恰好能够，落入相逢的城池。\n" +
            "　　\n" +
            "　　总想着，即便是散落天涯的尘埃，也能挥着隐形的翅膀，如童话故事那般，随缘晾晒，把盏岁月。风飞舞流年窗台，挺暖地，在装满阳光的细碎往事中，掀开喜爱的页脚，于最美的时光，流泻厚实的线条，写意几笔，诗行几句，小日子里的小心情，挺好的！";
    @BindView(R.id.btnDialog)
    Button btnDialog;

    Dialog dialog;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_word);
        ButterKnife.bind(this);
        tvWord.setMovementMethod(ScrollingMovementMethod.getInstance());
        FlowWordUtil.showWord(word,300, TimeUnit.MILLISECONDS,tvWord);

    }

    @OnClick
    public void onClick(View view)
    {
        switch (view.getId())
        {
            case R.id.btnDialog:

                break;
        }
    }
}
